package com.fyk.service;

import com.fyk.dao.DepDao;
import com.fyk.entity.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 范宇坤
 * @date: 2021/8/4 17:40
 */
@Service
@Transactional
public class DepServiceImpl implements DepService{

    private DepDao depDao;
    @Autowired
    public void setDepDao(DepDao depDao) {
        this.depDao = depDao;
    }

    @Override
    public List<String> queryAllDepName() {
        return depDao.queryAllDepName();
    }
}
